package com.atguigu.edu.service.impl;

import com.atguigu.edu.mapper.Traffic_StatisticsMapper;
import com.atguigu.edu.realtime.common.bean.Traffic_Statistics_From_Each_Hour;
import com.atguigu.edu.realtime.common.bean.Traffic_Statistics_From_Each_Source;
import com.atguigu.edu.service.trafficStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TrafficStatsServiceImpl implements trafficStatsService {

    // TODO: 2024/11/16 自动装配 mapper
    @Autowired
    private Traffic_StatisticsMapper Traffic_StatisticsMapper;

    @Override
    public List<Traffic_Statistics_From_Each_Source> getTraffic_Statistics(Integer date) {
        return Traffic_StatisticsMapper.selectsc(date);
    }

    @Override
    public List<Traffic_Statistics_From_Each_Hour> getTraffic_Statistics_hour(Integer date) {
        return Traffic_StatisticsMapper.selecthour(date);

    }





}
